package cn.com.manager.utility;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;

import org.apache.commons.io.FilenameUtils;

public class SystemUtils {
	public static String newUploadFileName(String uploadName) {
		SimpleDateFormat format = new SimpleDateFormat("yyyyMMddHHmmss");
		Random random = new Random();
		String name = format.format(new Date()) + random.nextInt(10000) + "." + FilenameUtils.getExtension(uploadName);
		return name;
	}
}
